package com.centit.springbootdemo03.mapper;

import com.centit.springbootdemo03.entity.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author zhao_jx
 * @date 2020/7/5 9:57
 */
@Mapper
public interface UserMapper {
    int addUser(@Param("model")User user);

    List<User> queryAllUser(@Param("model")User user);

    User getUser(Long userId);
}
